@echo off
rem echo."%%1=%1"
echo."%%1=%~s1"
for /f "usebackq delims=" %%f in (`echo.%1`) do echo %%~sf
